package com.fable.ntzw_ga.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 
 *
 * @author Created by gzh 2023-02-19 23:50:03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Accessors(chain = true)
@Table(appliesTo = "sys_user_role",comment="用户关联角色表")
public class SysUserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @TableId(value = "id", type = IdType.AUTO)
    @Column(name = "id", columnDefinition = "bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户角色id'")
    private Long id;

    @Column(name = "user_id", columnDefinition = "bigint(20) NOT NULL COMMENT '用户id'")
    private Long userId;

    @Column(name = "role_id", columnDefinition = "bigint(20) NOT NULL COMMENT '角色id'")
    private Long roleId;


}
